home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / jig.swf / scripts / DefineButton2_65 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2006-06-13  |  228 b   |  14 lines

  1. on(press){
  2.    var a;
  3.    a = this.mark;
  4.    a._alpha = a._alpha <= 0 ? 100 : 0;
  5.    if(a._alpha == 100)
  6.    {
  7.       _root["set"].mainvol.setVolume(100);
  8.    }
  9.    else
  10.    {
  11.       _root["set"].mainvol.setVolume(0);
  12.    }
  13. }
  14.